<?=View::factory('admin/common/header')?>
<div id="content">
  <div class="breadcrumb">
    <a href="<?=URL::site('admin')?>">管理首页</a>
    &raquo; <a href="<?=URL::site('admin/member')?>">会员列表</a>
    &raquo; 编辑会员资料
  </div>
  <?=View::factory('admin/common/message')?>
  <div class="box">
    <div class="heading">
      <h1><img src="<?=URL::base()?>images/admin/user.png" alt="" /> 编辑会员资料</h1>
      <div class="buttons">
        <input type="button" onclick="$('#form').ajax_post({redirect:'<?=Helper::factory('redirect')->get(URL::site('admin/member'))?>'});" class="btn45" value="保存" /> &nbsp;
        <input type="button" onclick="history.back();" class="btn45" value="返回" />
      </div>
    </div>
    <div class="content">
      <form method="post" enctype="multipart/form-data" id="form" onsubmit="return $('#form').ajax_post({redirect:'<?=Helper::factory('redirect')->get(URL::site('admin/member'))?>'});">
        <table class="form">
          <tr>
            <td width="120">会员 ID</td>
            <td><?=$member_id?></td>
          </tr>
          <tr>
            <td>邮箱地址 <span class="required">*</span></td>
            <td><input type="text" size="30"  maxlength="50" name="email" value="<?=$email?>" disabled="disabled" /></td>
          </tr>
          <tr>
            <td>登录密码 <span class="required">*</span></td>
            <td><input type="password" size="30"  maxlength="50" name="password" /> <font color="gray">不输入新密码，则不修改密码，密码不少于4个字符</font></td>
          </tr>
          <tr>
            <td>确认密码 <span class="required">*</span></td>
            <td><input type="password" size="30"  maxlength="50" name="confirm" /></td>
          </tr>
          <tr>
            <td>昵称 <span class="required">*</span></td>
            <td><input type="text" size="30"  maxlength="50" name="nickname" value="<?=$nickname?>" /> <font color="gray">昵称可做为登录帐号，不允许包括标点符号及特殊字符</font></td>
          </tr>
          <tr>
            <td>状态</td>
            <td><label><input type="radio" name="status" value="<?=Member::NORMAL?>" <?=($status==Member::NORMAL)?'checked':''?> /> <?=Member::status(Member::NORMAL, FALSE)?></label>
            <label><input type="radio" name="status" value="<?=Member::LOCKED?>" <?=($status==Member::LOCKED)?'checked':''?> /> <?=Member::status(Member::LOCKED, FALSE)?></label>
            <label><input type="radio" name="status" value="<?=Member::NOTACT?>" <?=($status==Member::NOTACT)?'checked':''?> /> <?=Member::status(Member::NOTACT, FALSE)?></label>
            </td>
          </tr>
        </table>
      </form>
    </div>
</div>
<?=View::factory('admin/common/footer')?>
<script type="text/javascript">
$().ready(function(){
    $('#member').addClass('selected');
    $('.date').datepicker({yearRange: 'c-60:c+0'});

});
</script>